﻿using System;
using System.Collections.Generic;
using System.Text;
using DevExpress.ExpressApp.DC;
using DevExpress.Persistent.Base;
using DevExpress.Xpo;
using DevExpress.Persistent.Validation;
using DevExpress.ExpressApp.SystemModule;
using DevExpress.ExpressApp;

namespace DomainComponents.XCRM {
    [NonPersistent] //TODO xpo?
    public class CloseInvoice {
        public InvoiceStatus Status { get; set; }
    }
    [DomainLogic(typeof(IInvoice))]
    public class InvoiceCloseLogic {
        public static void Close(IInvoice invoice, CloseInvoice convertParams) {
            invoice.Status = convertParams.Status;
        }
    }
}
